package com.tencreat.domain.mall.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.tencreat.common.core.domain.BaseVO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author Administrator
 * 店铺
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class MallStoreTableVO extends BaseVO {

    private String name;//商品名称

    private String oneLevel;

    private String twoLevel;

    private String goodsGroup;

    private String picUrl;//商品图片

    //private BigDecimal retailPrice;
    private BigDecimal counterPrice;
    private BigDecimal supplyPrice;//供应价格|显示价格

    private Long inventory;//库存

    //private Long commoditySales;

    //private Long expectCommoditySales;

    private String goodsType;//商品类型
    /****
     * 店铺商家名称
     */
    private String userName;

//    private String salesDiscount;
/*
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime shelfTime;

    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
*/

    private Integer isOnSale;

    @ApiModelProperty(value= "品牌 0-关闭 1-开启")
    private Integer brand;

    @ApiModelProperty(value= "爆款 0-关闭 1-开启")
    private Integer burst;

    @ApiModelProperty(value= "是否人气推荐，如果设置则可以在人气推荐页面展示")
    private Integer isHot;


    @ApiModelProperty("审核状态,0|待审核,1|已通过,2|已驳回")
    private Integer auditStatus;

    @ApiModelProperty(value= "是否置顶  0-否 1-是")
    private Integer top;

    private  BigDecimal originalPrice;//商品原价

    @ApiModelProperty("创建时间")//商品售卖开始时间
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(exist = false)
    private LocalDateTime startTime;

    @ApiModelProperty("截止时间")//商品售卖结束时间
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(exist = false)
    private LocalDateTime endTime;
}
